package samse.app.ebook;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class BookViewerActivity extends Activity {

	Reader mReader;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Intent intent = getIntent();
		Bundle bundle = intent.getExtras();
		String title = bundle.getString("Title");
		String path = bundle.getString("Path");
		long jumpto = bundle.getInt("JumpTo");

		mReader = ReaderFactory.createReader(ReaderFactory.TYPE_TEXT);
		if (jumpto <= 1)
			mReader.startReader(path);
		else
			mReader.startReader(path, jumpto);
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}
	
	
	
}
